home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 21
/
CU Amiga Magazine's Super CD-ROM 21 (1998)(EMAP Images)(GB)[!][issue 1998-04].iso
/
CUCD
/
Programming
/
Python-1.4
/
Source
/
Amiga
/
Python_netlib
/
seteuid.c
< prev
next >
Wrap
C/C++ Source or Header
|
1996-04-22
|
490b
|
27 lines
RCS_ID_C="$Id: seteuid.c,v 4.1 1994/09/29 23:09:02 jraja Exp $";
/*
* seteuid() - set effective user
*
* Copyright © 1994 AmiTCP/IP Group,
* Network Solutions Development Inc.
* All rights reserved.
*/
#include <sys/types.h>
#include <unistd.h>
#include <proto/usergroup.h>
#include "allobjects.h"
#ifdef seteuid
#undef seteuid
#endif
int
seteuid(uid_t u)
{
if(!checkusergrouplib()) return -1;
return setreuid(-1, u);
}